package com.example.jcservice.client;

import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.annotation.Var;
import com.dtflys.forest.http.ForestResponse;

import java.util.Map;

public interface JcYkt {

    /**
     * 访问个人一卡通详情页面
     * */
    @Get(url = "http://www.macrojet.cn/YKT/YKT.ashx?ty=3&user=${a}&pass=${b}&school=1000&level=1")
    String getInfo(@Var("a") String a, @Var("b") String b);

    /**
     * 挂失
     * */
    @Get(url = "http://www.macrojet.cn/YKT/YKT.ashx?")
    ForestResponse yktGs(@Query Map<String, String> map);

    /**
     * 访问消费记录页面
     * */
    @Get(url = "http://www.macrojet.cn/YKT/YKT.ashx?ty=7&user=${u}&pass=${p}&school=1000&start=${star}&end=${end}&level=1",timeout = 15000)
    ForestResponse getRecords(@Var("u") String u,@Var("p") String p,@Var("star") String star,@Var("end") String end);

    /**
     * 修改单日限额
     * */
    @Get(url = "http://www.macrojet.cn/YKT/YKT.ashx?")
    ForestResponse yktLimit(@Query Map<String, String> map);
}
